import request from "@/utils/request";
// 商品列表
export const goodsList = (params) => request.get("/api/goods/pageList.do", params);
// 商品类型列表
export const goodsTypeList = () => request.get("/api/goodsType/list.do");
// 删除商品
export const deleteGoods=(obj)=>request.post("/api/goods/deleted.do",obj,{
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
})

//添加商品
export const insertGoods=(obj)=>request.post("/api/goods/insert.do",obj,{
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
})

//修改商品
export const updateGoods=(obj)=>request.post("/api/goods/update.do",obj,{
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
})